package com.newcapec.dao;

import com.newcapec.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo login(@Param("userName") String userName, @Param("userPwd")String userPwd);
    List<UserInfo> selectAll(UserInfo userInfo);

    int batchDelete(Integer[] userIds);

    boolean insertBatch(List<UserInfo> list);
}